package com.mv.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("admin")
public class Admin extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String adminName;
    private String password;
    private String job;
    private String avatarClass;
    @TableField(exist = false)
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date loginTime;
    @TableField(exist = false)
    private String token;
}
